package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class TestInterceptor {
    @RequestMapping("testOne")
    public String testOne(Model model){
        System.out.println("TestInterceptor.testOne"+"controller方法正在执行！");
        model.addAttribute("msg","欢迎来到蜗牛学院");
        return "success";
    }
}
